// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 此处后端没有提供注释 POST /generateExercises/exam/add */
export async function generateExam(
  body: API.AddGenerateExamRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseGenExercisesVO>('/generateExercises/exam/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /generateExercises/exam/delete */
export async function deleteGenerateExam(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteGenerateExamParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/generateExercises/exam/delete', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /generateExercises/exam/get */
export async function getGenerateExam(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getGenerateExamParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListExercisesVO>('/generateExercises/exam/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /generateExercises/exam/list/page */
export async function listGenerateExamByPage(
  body: API.ExercisesSetsQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageExercisesSets>('/generateExercises/exam/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /generateExercises/judge */
export async function judgeExercises(
  body: API.JudgeExercisesRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListJudgeResponse>('/generateExercises/judge', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /generateExercises/judge/stream */
export async function judgeExercisesStream(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.judgeExercisesStreamParams,
  options?: { [key: string]: any }
) {
  return request<API.SseEmitter>('/generateExercises/judge/stream', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /generateExercises/question/add */
export async function generateQuestion(
  body: API.AddGenerateQuestionRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseGenExercisesVO>('/generateExercises/question/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /generateExercises/question/delete */
export async function deleteGenerateQuestion(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteGenerateQuestionParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/generateExercises/question/delete', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /generateExercises/question/get */
export async function getGenerateQuestion(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getGenerateQuestionParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListExercisesVO>('/generateExercises/question/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /generateExercises/question/list/page */
export async function listGenerateQuestionByPage(
  body: API.ExercisesSetsQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageExercisesSets>('/generateExercises/question/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
